<template>
    <div>
        home组件: --{{name}}-----{{age}}
        <button @click="pageClick">homebtn</button>
    </div>
</template>
<script>
export default {
    props: {
        name: {
            type: String,
            default() {
                return ""
            }
        },
        age: {
            type: Number,
            default: 0
        }
    },
    emits: ["pageClick"],
    data() {
       return {}
    },
    created() {},
    methods: {
        pageClick() {
            this.$emit("pageChange", "home发射的事件")
        }
    },
}
</script>
<style>
</style>
